package cn.lsc.dto;

import cn.lsc.domain.Course;
import cn.lsc.domain.CourseDetail;
import cn.lsc.domain.CourseMarket;
import cn.lsc.domain.CourseResource;
import lombok.Data;

import javax.validation.Valid;
import javax.validation.constraints.NotEmpty;
import java.util.List;
@Data
public class CourseDto {
    // 课程
    @Valid
    private Course course;
    // 课程详情
    @Valid
    private CourseDetail courseDetail;
    // 课程营销
    @Valid
    private CourseMarket courseMarket;
    // 课程资源
    @Valid
    private CourseResource courseResource;
    // 当前课程的老师id集合
    @NotEmpty
    private List<Long> teacherIds;

}
